
export function toUtf8(buf: number[]) {
    const decoder = new TextDecoder('utf8');
    return decoder.decode(Uint8Array.from(buf));
}
